home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-28 | 2.3 KB | 97 lines | [TEXT/KAHL] |
- /*
- File: SymantecCPlusPlusStuff.cp
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __BLJStandardIncludes__
- #include "BLJStandardIncludes.h"
- #endif
-
- #ifndef __CONNECTIONS__
- #include <Connections.h>
- #endif
-
- #ifndef __FILES__
- #include <Files.h>
- #endif
-
- /***********************************|****************************************/
-
- extern "C" {
- void __pure_virtual_called ( void );
- pascal OSErr PBGETALTACCESS (HParmBlkPtr paramBlock,Boolean async );
- pascal OSErr PBSETALTACCESS (HParmBlkPtr paramBlock,Boolean async );
- OSErr create ( char*, short x, unsigned long l1, unsigned long l2 );
- pascal void CMGetErrorString(ConnHandle hConn,short id,Str255 errMsg);
- pascal void C2PSTR ( char* cStr );
- pascal void P2CSTR ( unsigned char* pStr );
- }
-
-
- /***********************************|****************************************/
-
- #if 0
- void __pure_virtual_called ( void )
- {
- DebugStr ("\p__pure_virtual_called");
- }
- #endif
-
- /***********************************|****************************************/
-
- #if 0
- pascal OSErr PBGETALTACCESS (HParmBlkPtr paramBlock,Boolean async )
- {
- if ( async )
- return PBGetAltAccessAsync ( paramBlock );
- else
- return PBGetAltAccessSync ( paramBlock );
- }
-
- /***********************************|****************************************/
-
- pascal OSErr PBSETALTACCESS (HParmBlkPtr paramBlock,Boolean async )
- {
- if ( async )
- return PBSetAltAccessAsync ( paramBlock );
- else
- return PBSetAltAccessSync ( paramBlock );
- }
- #endif
-
- /***********************************|****************************************/
-
- OSErr create ( char*, short x, unsigned long l1, unsigned long l2 )
- {
- DebugStr ("\pcreate unexpectedly called.");
- return -1;
- }
-
- /***********************************|****************************************/
-
- pascal void C2PSTR ( char* cStr )
- {
- unsigned char len = strlen ( cStr );
- BlockMove ( (Ptr) & cStr[0], (Ptr) & cStr[1], len );
- (unsigned char) cStr[0] = len;
- }
-
- /***********************************|****************************************/
-
- pascal void P2CSTR ( unsigned char* pStr )
- {
- unsigned char len = pStr[0];
- BlockMove ( & pStr[1], & pStr[0], len );
- pStr[ len ] = 0;
- }
-
- /***********************************|****************************************/
-